package com.dfbz.demo01;

import java.util.Scanner;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo02_next {
    public static void main(String[] args) {

        // 创建一个扫描器
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入一个字符串: ");
        String str1 = scanner.next();

        System.out.println("您输入的值为: " + str1);

        System.out.println("请输入一个字符串: ");
        String str2 = scanner.next();

        System.out.println("您输入的值为: " + str2);

    }
}
